package com.duobaoyu.dby.supply.db.entity.config;

import com.baomidou.mybatisplus.annotation.*;
import com.duobaoyu.dby.common.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName ChannelCallbackMapping
 * @Description 对接渠道回调路径映射
 * @createTime 12:08:00 2023/04/21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "渠道回调映射配置表")
@TableName(value = "sc_channel_callback_mapping", autoResultMap = true)
public class ChannelCallbackMapping extends BaseEntity {

    private static final long serialVersionUID = -1317829665909532338L;

    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 渠道编码
     */
    @ApiModelProperty(value = "渠道编码")
    private String channelCode;
    /**
     * 回调域名
     */
    @ApiModelProperty(value = "回调域名")
    private String host;
    /**
     * 渠道回调接口路径
     */
    @ApiModelProperty(value = "渠道回调接口路径")
    private String channelPath;
    /**
     * 映射回调接口路径
     */
    @ApiModelProperty(value = "映射回调接口路径")
    private String mappingPath;
    /**
     * 状态 0->停用; 1->正常
     *
     * //@see CommonEnum
     */
    @ApiModelProperty(value = "状态")
    private Integer status;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * new OptimisticLockerInnerInterceptor()
     * 版本号-用作乐观锁
     */
    @ApiModelProperty(value = "版本号-用作乐观锁")
    @Version
    private Integer version;
    /**
     * 删除标记：0-正常，1-已经删除
     */
    @ApiModelProperty(value = "删除标记：0-正常，1-已经删除")
    @TableLogic(value = "0", delval = "1")
    private Integer delFlag;
}

